package com.restaurant.application.coupon.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.coupon.Coupon;
import com.restaurant.application.indexes.couponlist.mysql.CouponListBean;
import com.restaurant.application.minifacade.data.CardBO;

public class CouponOutFace implements Coupon {
    private CouponBase base;

    public CouponOutFace(CouponBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public String update(CouponData arg0) {
        return (String)base.call("update", arg0);
    }

    @Override
    public String init(CouponData arg0) {
        return (String) base.call("init", arg0);
    }

    @Override
    public CardBO getCardBean() {
        return (CardBO) base.call("getCardBean");
    }

    @Override
    public String confirmUse(String arg0) {
        return (String) base.call("confirmUse", arg0);
    }

    @Override
    public CouponData findData() {
        return (CouponData) base.call("findData");
    }

    @Override
    public String confirmReceive(int arg0) {
        return (String) base.call("confirmReceive", arg0);
    }

    @Override
    public UID getId() {
        return (UID)base.call("getId");
    }

    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }

    @Override
    public CouponListBean getCouponUidDataForCouponList(CouponListBean arg0) {
        return (CouponListBean)base.call("getCouponUidDataForCouponList", arg0);
    }
}
